

export class Singleton {
    private static _instance: any = null;
    public static getInstance<T>(): T {
        if (this._instance == null) {
            this._instance = new this();
        }
        this._instance.initailize();
        return this._instance as T;
    }

    protected initailize(): void {

    }
}


